package com.yanjiali.service;

import com.yanjiali.entity.SettingContent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yanjiali.model.R;
import com.yanjiali.model.req.UpdateSettingContentReq;
import com.yanjiali.model.resp.UpdateSettingContentResp;

/**
* @Package: com.yanjiali.service
* @Author: yanjiali
* @Created: 2025/4/30 15:01
*/
public interface SettingContentService extends IService<SettingContent> {

    /**
     * 修改对应设置内容的状态
     * @param updateSettingContentReq
     * @return
     */
    R<UpdateSettingContentResp> updateSettingContent(UpdateSettingContentReq updateSettingContentReq);

    /**
     * 通过设置名称获取设置是否打开
     * @param name
     * @return
     */
    R getSettingContentIsOpenByName(String name);
}
